package com;

import java.util.Scanner;

public class Text1 {

    public static void main(String[] args) {
        String s2 = "1";
        for (int i = 0; ; i++) {
            Scanner sc = new Scanner(System.in);
            System.out.println("请输入数字或者中文:");
            String next = sc.next();
            s2 = s2 + next;
            if (next.equals("结束")) {
                s2 = s2.substring(1,s2.length()-2);
                String[] arr1 = {s2};
                for (String s1 : arr1) {
                    System.out.println(s1);
                }
                break;
            }
        }
    }
}
